<?php /* Smarty version 2.6.18, created on 2009-09-11 09:45:39
         compiled from emailMessagesSub.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'emailMessagesSub.tpl', 17, false),)), $this); ?>
<table border="0" width="100%">
						<tr><td colspan="6"><hr></td></tr>
						<tr>
							<td align="center">Read</td>
							<td align="center">Delete</td>
							<td align="right">Date Sent</td>
						<?php if ($this->_tpl_vars['userType'] == 1): ?>
							<td>Recipients</td>	
						<?php else: ?>
							<td>Sender</td>
						<?php endif; ?>
							<td width="20%">Subject</td>
							<td width="50%">Message</td>
						</tr>
						<tr><td colspan="6"><hr></td></tr>
					<?php $_from = $this->_tpl_vars['messages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['message']):
?>
						<tr class="<?php echo smarty_function_cycle(array('values' => 'blue,notify'), $this);?>
">
							<td align="center"><input type="checkbox" name="user[read_mail]" <?php if ($this->_tpl_vars['message']['read'] == '1'): ?> CHECKED <?php endif; ?> onchange="setReadMessage('<?php echo $this->_tpl_vars['message']['message_id']; ?>
');" <?php if ($this->_tpl_vars['userType'] == 1): ?>disabled<?php endif; ?> /></td>
							<td align="center"><input type="checkbox" name="user[cancel_mail]" onchange="setCancelMessage('<?php echo $this->_tpl_vars['message']['message_id']; ?>
');" /></td>
							<td align="right" nowrap><?php echo $this->_tpl_vars['message']['date_sent']; ?>
</td>
							<?php if ($this->_tpl_vars['userType'] == 1): ?>
								<td nowrap><?php echo $this->_tpl_vars['message']['rec_name']; ?>
</td>
							<?php else: ?>
								<td nowrap><?php echo $this->_tpl_vars['message']['src_name']; ?>
</td>
							<?php endif; ?>
							<td><a href="javascript:void(0);" onclick="readMessage('<?php echo $this->_tpl_vars['message']['message_id']; ?>
','<?php echo $this->_tpl_vars['userType']; ?>
');"><?php echo $this->_tpl_vars['message']['subject']; ?>
</a></td>
							<td><?php echo $this->_tpl_vars['message']['message_part']; ?>
</td>
						</tr>
					<?php endforeach; endif; unset($_from); ?>
					</table>